<?php
/**
 * Created by PhpStorm.
 * User: zgh
 * Date: 2022-01-19
 * Time: 9:26
 */

namespace app\admin\item;

class MenuLoader extends ItemLoader
{

    protected function del_ids_in($value)
    {
        if (is_string($value)) {
            $ids = explode(",", $value);
        } else {
            $ids = $value;
        }
        return $ids;
    }

    protected function icon_in($value)
    {
        if (!empty($value) && substr($value, 0, 3) == 'fa-') {
            $value = "fa " . $value;
        }
        return $value;
    }


}